home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Archive / Games / Soundboard / CGrayBox.h < prev    next >
Encoding:
Text File  |  2000-09-28  |  656 b   |  27 lines  |  [TEXT/MMCC]

  1. // ===========================================================================
  2. //    CGrayBox.h                    ©1995 Apple Computer, Inc. All rights reserved.
  3. // ===========================================================================
  4.  
  5. #pragma once
  6.  
  7. #include <LView.h>
  8.  
  9. const RGBColor                mLtGray = {0xAAAA, 0xAAAA, 0xAAAA};
  10.  
  11.  
  12. class    CGrayBox : public LView {
  13. public:
  14.     enum { class_ID = 'gBox' };
  15.  
  16.     static CGrayBox*        CreateGrayBoxStream(LStream *inStream);
  17.                             CGrayBox(LStream *inStream);
  18.                             
  19.     virtual void            Draw(RgnHandle inSuperDrawRgnH);
  20.     
  21. protected:
  22.     Boolean                    mDrawGrayBkgrnd;
  23.     
  24.     virtual void            DrawSelf();    
  25.     virtual void            ApplyForeAndBackColors();
  26. };
  27.